<?php

/********************************** 无限制路由 **********************************/

/*公共接口*/
Route::post('small_vehicle_license_orc', ['as' => 'small_vehicle_license_orc', 'uses' => 'BaiduCloudOcrController@vehicle_license']);//识别机动车行驶证-转文字
Route::get('small_checkpoint_open_city_and_area', ['as' => 'small_checkpoint_open_city_and_area', 'uses' => 'ShopController@checkpoint_open_city_and_area']);//获取已经开通的城市-以及所管辖的区
Route::post('small_location_distance_for_two_point', ['as' => 'location_distance_for_two_point', 'uses' => 'PublicController@location_distance_for_two_point']);//获取两个地理点的距离

/*小程序支付回调*/
Route::any('small_wechat_pay_mini_notify', ['as' => 'small_wechat_pay_mini_notify', 'uses' => 'PayWechatController@mini_app_pay_notify']);//微信支付回调确认【支付确认】

/*年检须知 + 小程序版本 + 免责声明*/
Route::get('small_year_check_note', ['as' => 'small_year_check_note', 'uses' => 'PublicController@year_check_note']);//年检须知
Route::get('small_version', ['as' => 'small_version', 'uses' => 'PublicController@version']);//小程序版本
Route::get('small_disclaimer', ['as' => 'small_disclaimer', 'uses' => 'PublicController@disclaimer']);//免责声明

/*车型列表*/
Route::get('mini-vehicle_model_top_list', ['as' => 'mini_vehicle_model_top_list', 'uses' => 'UserVehicleController@vehicle_model_top_list']);//分类
Route::get('mini-vehicle_model_list', ['as' => 'mini_vehicle_model_list', 'uses' => 'UserVehicleController@vehicle_model_list']);//车型列表

/*和代驾项目数据交互*/
Route::post('small_appointment_order_helpdriving_callback', ['as' => 'small_appointment_order_helpdriving_callback', 'uses' => 'PublicController@appointment_order_helpdriving_callback']);//呼叫代驾信息回调
Route::post('small_jinchen_helpdriving_order_detail', ['as' => 'small_jinchen_helpdriving_order_detail', 'uses' => 'PublicController@jinchen_helpdriving_order_detail']);//今晨代驾订单详情

/*检测机构*/
Route::get('small_checkpoint_list', ['as' => 'small_checkpoint_list', 'uses' => 'ShopController@checkpoint_list']);//检测机构列表
Route::get('small_checkpoint_detail', ['as' => 'small_checkpoint_detail', 'uses' => 'ShopController@checkpoint_detail']);//检测机构-商家详情
Route::get('small_checkpoint_appointment_day_list', ['as' => 'small_checkpoint_appointment_day_list', 'uses' => 'ShopController@checkpoint_appointment_day_list']);//检测机构预约时段列表
Route::get('small_checkpoint_apprise_list', ['as' => 'small_checkpoint_apprise_list', 'uses' => 'ShopController@checkpoint_apprise_list']);//车友评价列表
Route::get('small_checkpoint_product_list', ['as' => 'small_checkpoint_product_list', 'uses' => 'ShopController@checkpoint_product_list']);//检测机构价目表


//Route::get('small_checkpoint_check_appointment', ['as' => 'small_checkpoint_check_appointment', 'uses' => 'ShopController@checkpoint_check_appointment']);//检查预约
///*支付相关*/
//Route::get('small_wechat_pay_mini_refund', ['as' => 'small_wechat_pay_mini_refund', 'uses' => 'PayWechatController@pay_mini_refund']);//退款




/********************************** 需要验证登录token的路由 **********************************/
Route::group(['middleware' => ['small_api_auth:small_api']], function () {

    Route::post('small_mini_wechat_phone', ['as' => 'small_mini_wechat_phone', 'uses' => 'IndexController@get_mini_wechat_phone']);  //获取手机号

    //    Route::post('api-user-update_user_info', ['as' => 'api_user_update_user_info', 'uses' => 'UserController@update_user_info']);  //更新用户信息

    /*爱车档案*/
    Route::get('small_users_vehicle_list', ['as' => 'small_users_vehicle_list', 'uses' => 'UserVehicleController@users_vehicle_list']);//用户车辆档案列表
    Route::post('small_users_vehicle_add', ['as' => 'small_users_vehicle_add', 'uses' => 'UserVehicleController@add_users_vehicle']);//添加用户车辆档案
    Route::put('small_users_vehicle_edit', ['as' => 'small_users_vehicle_edit', 'uses' => 'UserVehicleController@edit_users_vehicle']);//修改用户车辆档案
    Route::delete('small_users_vehicle_del', ['as' => 'small_users_vehicle_del', 'uses' => 'UserVehicleController@del_users_vehicle']);//删除用户车辆档案
    Route::post('mini_set_default_user_vehicle', ['as' => 'mini_set_default_user_vehicle', 'uses' => 'UserVehicleController@set_default_user_vehicle']);//设置默认车辆


    Route::post('small_order_checkpoint_submit', ['as' => 'small_order_checkpoint_submit', 'uses' => 'ShopController@order_checkpoint_submit']);//年检订单提交预约-到站检车-个人单
    Route::post('small_helpdriving_order_checkpoint_submit', ['as' => 'small_helpdriving_order_checkpoint_submit', 'uses' => 'ShopController@helpdriving_order_checkpoint_submit']);//年检订单提交预约-代驾检车-个人单
    Route::post('small_shop_arrpise_submit', ['as' => 'small_shop_arrpise_submit', 'uses' => 'ShopController@shop_arrpise_submit']);//用户给店铺评分-年检预约单专属

/*【原】*/
    Route::get('small_user_checkpoint_order_list', ['as' => 'small_user_checkpoint_order_list', 'uses' => 'ShopController@user_checkpoint_order_list']);//用户年检预约单列表
    Route::get('small_user_checkpoint_order_detail', ['as' => 'small_user_checkpoint_order_detail', 'uses' => 'ShopController@user_checkpoint_order_detail']);//用户年检预约单详情

    Route::post('small_wechat_mini_pay_checkpoint', ['as' => 'small_wechat_mini_pay_checkpoint', 'uses' => 'PayWechatController@order_checkpoint_mini_pay']);//小程序-年检预约单微信小程序支付【支付】
    //    Route::post('small_order_checkpoint_cancle', ['as' => 'small_order_checkpoint_cancle', 'uses' => 'PayWechatController@order_checkpoint_cancle']);//小程序-年检预约单-取消预约【已支付订单】
    Route::post('small_order_checkpoint_apply_refund', ['as' => 'small_order_checkpoint_apply_refund', 'uses' => 'PayWechatController@order_checkpoint_apply_refund']);//小程序-年检预约单-申请退款
    Route::post('small_order_checkpoint_cancle_notpay', ['as' => 'small_order_checkpoint_cancle_notpay', 'uses' => 'PayWechatController@order_checkpoint_cancle_notpay']);//小程序-年检预约单-取消订单【未支付订单】

    /*【新】*/
    Route::get('mini_user_njyy_order_list', ['as' => 'mini_user_njyy_order_list', 'uses' => 'ShopController@user_njyy_order_list']);//用户年检预约单列表
    Route::get('mini_user_njyy_order_detail', ['as' => 'mini_user_njyy_order_detail', 'uses' => 'ShopController@user_njyy_order_detail']);//用户年检预约单详情


});





